package com.gitee.jisong.supercore.ctrl

import com.gitee.jisong.spring.annotation.GETPOST
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import javax.servlet.http.HttpServletRequest


@RestController
@RequestMapping
class IndexCtrl{

    @GETPOST(value = ["/"])
    fun index(req: HttpServletRequest){

    }


    @GETPOST(value = ["/{id}"])
    fun id(@PathVariable("id") id:String?):String = id ?: "-"

}